<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题文档</title>
		<link href="../css/bgcss.css"
			rel="stylesheet" type="text/css" />			
	<script src="<%=request.getContextPath()%>/tools/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

<script type="text/javascript">
	function showReport(time,type){	
	if(navigator.appName=="Microsoft Internet Explorer"){	
		window.showModalDialog('goodplan?method=queryReport'+type+'&time='+time,'','dialogWidth=1024px;dialogHeight=768px;scroll=true');
	}
	else if(navigator.appName=="Netscape"){		
		window.open('goodplan?method=queryReport'+type+'&time='+time,'','width=1024,height=768,modal=yes,location=no,scrollbars=yes,status=no,toolbar=no,resizble=yes'); 
	}	
}
</script>
	</head>

	<body>
		<jsp:include page="../frame/right_top.jsp" flush="true" />
		 <div id="right_font"><img src="<%=request.getContextPath()%>/images/bg/main_14.gif"/> 您现在所在的位置：首页 &gt;&gt; 要货计划管理 &gt;&gt; 明细查询 </div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30">
				
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
					<td>
					<form method="post" name="form" action="<%=request.getContextPath()%>/background/goodplan?method=queryAll&Action_Id=909" target="frame_content">
						查询条件&nbsp;&nbsp;
						门店:
						<select name="DoorStore_Id" id="doorStore">		
							<option value="0">
							=所有门店=
							</option>			
						<c:forEach items="${dssList}" var="item" varStatus="var">
									<option value="${item.doorStore_Id }">
											${item.doorStore_Name }
									</option>									
								</c:forEach>					
					</select>
						单据类型：
          <select name="ToGoodType" id="ToGoodType">
          	<option value="0">
				==全部==
			</option>
			<option value="1">
						原材料供应单
					</option>
					<option value="2">
						下午补货单
					</option>
					<option value="3">
						明日补货单
					</option>
					<option value="4">
						早点要货单
					</option>
					<option value="5">
						早点补货单
					</option>
          </select>
						时间:
					<input type="text" id="time" name="time" class="Wdate" size="10"	maxlength="10" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
				
					<input type="submit"  value="查询明细" />
					<input type="button"  value="原材料供应单汇总" onclick="javascript:showReport(document.getElementById('time').value,1)"/>
					<input type="button"  value="早点要货单汇总" onclick="javascript:showReport(document.getElementById('time').value,4)"/>
					<!-- <input type="button"  value="下午要货单" onclick="javascript:showReport(document.getElementById('time').value,2)"/>
					<input type="button"  value="明日要货单" onclick="javascript:showReport(document.getElementById('time').value,3)"/> -->
					<script>		
					document.getElementById('time').value=new Date().getFullYear()+"-"+(new Date().getMonth()+1)+"-"+new Date().getDate();
			</script>
					</form>
					</td>
					
					</tr>
					</table>
				
					<iframe name="frame_content" id="frame_content"  marginwidth=0  marginheight=0 src="#" frameborder=0   scrolling="no" width=778 height=0></iframe>


			

		</td>
			</tr>
		</table>
	</body>
</html>
